package com.sporadic.backstage.service.serviceImpl;

import com.sporadic.backstage.entity.Merchant;
import com.sporadic.backstage.mapper.MerchantMapper;
import com.sporadic.backstage.service.MerchantService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MerchantServiceImpl implements MerchantService {
    @Autowired
    private MerchantMapper merchantMapper;
    /**
     * 商家登录
     * @param tel 电话
     * @param password 密码
     * @return 商家(对象)信息
     */
    @Override
    public Merchant doLogin(String tel, String password) {
        return  merchantMapper.doLogin(tel, password);
    }
}
